<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>用户信息</title>
</head>
<style>
    h1 {
        font-size: 25px;
        color: #F19F08;
    }

    .ticketbar {
        border: 3px solid #6899FF;
        font-size: 18px;
        padding: 40px;
        width: 300px;
        height: 200px;
    }
</style>

<body>
<div>
    <img src="http://localhost:8080/sellticket_war_exploded/forward/img/title.jpg" width="266" height="64" alt="" />
    <a href="http://localhost:8080/sellticket_war_exploded/forward/index.jsp" id="gotouser" style="float:right;position: absolute;top: 20px;right:20px;">首页</a>
</div>
<div id="userinfo" style="position: absolute;left:30px;top:120px;width: 400px;">
    <h1>姓名：${resUser.user_name}</h1>
    <h2>联系方式：${resUser.user_phone}</h2>
    <h2>身份证号：${resUser.user_cardno}</h2>
    <a href="http://localhost:8080/sellticket_war_exploded/forward/editaccount.jsp">修改个人信息</a>
</div>
<br><br>
<h1 id="cxxx" style="position: absolute;left:40px;top:300px;width: 300px;">&nbsp;&nbsp;出行信息</h1>
<div id="alltickets" style="position: absolute;left:40px;top:370px;">
    <c:forEach var="order" items="${orderList}">
    <div class="ticketbar">
        ${order.ticket.departure.station_name}&nbsp;&nbsp;--->&nbsp;&nbsp;${order.ticket.terminal.station_name}
        <br><br>
        出行时间：${order.ticket.train_date}&nbsp;&nbsp;&nbsp;${order.ticket.train_time}
        <br><br>
        车次：${order.ticket.train_no}
        <br><br>
        座位号：${order.seat_id}
        <br><br>
        <a href="#" style="text-decoration: none">取消订票</a>
    </div>
    </c:forEach>
    <br><br><br>
</div>
</body>

</html>